package com.woniu.smallmedical.controller;

import com.woniu.smallmedical.entity.Registrationtype;
import com.woniu.smallmedical.entity.ResponseResult;
import com.woniu.smallmedical.server.RegistrationtypeServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class RegistrationtypeController {
    @Autowired
    RegistrationtypeServer registrationtypeServer;

    @GetMapping("/selectRegistrationtype")
    public ResponseResult selectRegistrationtype(){
        System.out.println("查询挂号费！！！！");
        List<Registrationtype> registrationtypes = registrationtypeServer.selectRegistrationtype();
        return new ResponseResult(registrationtypes,200,"查询挂号费");
    }
}
